import { createRouter, createWebHistory } from 'vue-router'
// import coulist from '../views/coulist.vue'
import teamemu from '../views/teacher/teamemu.vue'
import stumemu from "../views/student/stumemu";
const routes = [
  {
    path: '/teamemu',
    name: 'teamemu',
    component: teamemu,
    children: [
      {
        path: '/teamemu/list',
        name: 'list',
        component: () => import(/* webpackChunkName: "about" */ '../views/teacher/list.vue')
      },
      {
        path: '/teamemu/insert',
        name: 'insert',
        component: () => import(/* webpackChunkName: "about" */ '../views/teacher/insert.vue')
      },
      {
        path: '/teamemu/updata',
        name: 'updata',
        component: () => import(/* webpackChunkName: "about" */ '../views/teacher/updata')
      },
      {
        path: '/teamemu/stumanger',
        name: 'stumanger',
        component: () => import(/* webpackChunkName: "about" */ '../views/teacher/stumanger')
      },
    ]
  },
  {
    path: '/stumemu',
    name: 'stumemu',
    component: stumemu,
    children: [
      {
        path: '/stumemu/choess',
        name: 'choess',
        component: () => import(/* webpackChunkName: "about" */ '../views/student/choess')
      },
      {
        path: '/stumemu/ischoess',
        name: 'ischoess',
        component: () => import(/* webpackChunkName: "about" */ '../views/student/ischoess')
      },
    ]
  },


  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/login')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router